package com.velpro.im.service.impl;

import com.velpro.im.mapper.IBaseMapper;
import com.velpro.im.mapper.UserMapper;
import com.velpro.im.mapper.po.User;
import com.velpro.im.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional(rollbackFor = {RuntimeException.class,Exception.class})
public class UserServiceImpl extends BaseServiceImpl<User> implements UserService {

	@Autowired
    private UserMapper userMapper;

	@Override
	public User login(String loginName, String password) {
		return userMapper.selectByPrimaryKey(1);
	}

	@Override
	protected IBaseMapper<User> getMapper() {
		return userMapper;
	}

	

}
